<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index - freemarker</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>hello freemarker</h1>
    <div>name: <span>${person.name}</span></div>
    <div>gender:
        <#if person.gender == 0>
            <span>男</span>
        </#if>
        <#if person.gender == 1>
            <span>女</span>
        </#if>
    </div>
    <div>height: <span>${person.height?string["0.00"]}</span></div>
    <div>hobbys:
        <#list person.hobbys as hobby>
            <span>${hobby}</span>
            <#if hobby_has_next>,</#if>
        </#list>
    </div>
</body>
</html>